IF FileDir~='/' & RIGHT(FileDir,2)~='//' & RIGHT(FileDir,1)='/' THEN FileDir=LEFT(FileDir,LENGTH(FileDir)-1)
IF OPEN(File,FullFileName,R) THEN DO
IF READCH(File,4)='FFD8FFE0'x & RIGHT(READCH(File,6),4)='JFIF' THEN DO
SET_ADPRO_PUBLIC
ADProScrn=adpro_result
SET_ADPRO_MODE
ScreenWidth=WORD(ADPRO_RESULT,2)
ScreenHeight=WORD(ADPRO_RESULT,3)
IF OPEN(CON,'con:'||TRUNC((ScreenWidth-SrchOutWinX)/2)||'/'||TRUNC((ScreenHeight-SrchOutWinY)/2)||'/'||SrchOutWinX||'/'||SrchOutWinY||'/ADPro JPEG_+_Comment Loader/NOSIZE/SCREEN '||ADProScrn,'W') THEN DO
IF OPEN(CON,'con:'||TRUNC((ScreenWidth-ComOutWinX)/2)||'/'||TRUNC((ScreenHeight-ComOutWinY)/2)||'/'||ComOutWinX||'/'||ComOutWinY||'/ADPro JPEG_+_Comment Loader/CLOSE/WAIT/SCREEN '||ADProScrn,'W') THEN DO